package com.zero.guava.samples.EventBus;

import com.google.common.eventbus.Subscribe;

/**
 * EventBus之异常处理
 */
public class ExceptionListener {

    @Subscribe
    public void m1(final String event){
        System.out.println("Received event [{"+event+"}] and will take m1");
    }

    @Subscribe
    public void m2(final String event){
        System.out.println("Received event [{"+event+"}] and will take m2");
    }

    @Subscribe
    public void m3(final String event){
        throw new RuntimeException();
    }
}
